package cn.worldyao.demo.entity;

import java.util.HashSet;
import java.util.Set;

public class Role1 {
    private Integer rid;
    private String rname;
    private Set<Permission1>  permissions = new HashSet<>();
    private Set<SysUser> users =  new HashSet<>();

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getRname() {
        return rname;
    }

    public void setRname(String rname) {
        this.rname = rname;
    }

    public Set<Permission1> getPermissions() {
        return permissions;
    }

    public void setPermissions(Set<Permission1> permissions) {
        this.permissions = permissions;
    }

    public Set<SysUser> getUsers() {
        return users;
    }

    public void setUsers(Set<SysUser> users) {
        this.users = users;
    }

    @Override
    public String toString() {
        return "Role{" +
                "rid=" + rid +
                ", rname='" + rname + '\'' +
                ", permissions=" + permissions +
                ", users=" + users +
                '}';
    }
}